
from django.contrib import admin
from .models import *

# Register your models here.


@admin.register(UserInfoModel)
class UserInfoAdmin(admin.ModelAdmin):
    save_on_top = True
    list_display = ['userid', 'name', 'sys_level']


@admin.register(DdingDineModel)
class DdingDineAdmin(admin.ModelAdmin):
    save_on_top = True
    list_display = ['dine_type', 'amount', 'cut_ddine_time', 'stop', 'stop_start_time', 'stop_end_time']


@admin.register(UserDdingDineModel)
class UserDdingDineAdmin(admin.ModelAdmin):
    save_on_top = True
    list_display = ['userid', 'name', 'mobile', 'num', 'is_check', 'code_time', 'amount', 'ddine_time', 'time']


@admin.register(ScanningCodes)
class ScanningCodesAdmin(admin.ModelAdmin):
    save_on_top = True
    list_display = ['userid', 'name', 'mobile', 'time']


admin.site.site_header = '精诚智订餐小程序后台'